package com.hanthink.system.service.impl.manhour;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hanthink.system.mapper.manhour.PLineEquipmentMapper;
import com.hanthink.system.domain.manhour.PLineEquipment;
import com.hanthink.system.service.manhour.IPLineEquipmentService;

/**
 * 生产线基础数据Service业务层处理
 * 
 * @author hanthink
 * @date 2022-05-05
 */
@Service
public class PLineEquipmentServiceImpl implements IPLineEquipmentService 
{
    @Autowired
    private PLineEquipmentMapper pLineEquipmentMapper;

    /**
     * 查询生产线基础数据
     * 
     * @param plineid 生产线基础数据ID
     * @return 生产线基础数据
     */
    @Override
    public PLineEquipment selectPLineEquipmentById(String plineid)
    {
        return pLineEquipmentMapper.selectPLineEquipmentById(plineid);
    }

    /**
     * 查询生产线基础数据列表
     * 
     * @param pLineEquipment 生产线基础数据
     * @return 生产线基础数据
     */
    @Override
    public List<PLineEquipment> selectPLineEquipmentList(PLineEquipment pLineEquipment)
    {
        return pLineEquipmentMapper.selectPLineEquipmentList(pLineEquipment);
    }

    /**
     * 查询生产线部门名称列表
     * @param deptid 部门id
     * @return
     */
    @Override
    public List<PLineEquipment> selectPLineEquipmentListbyfactoryid(String deptid)
    {
        return pLineEquipmentMapper.selectPLineEquipmentListbyfactoryid(deptid);
    }

    /**
     * 新增生产线基础数据
     * 
     * @param pLineEquipment 生产线基础数据
     * @return 结果
     */
    @Override
    public int insertPLineEquipment(PLineEquipment pLineEquipment)
    {
        return pLineEquipmentMapper.insertPLineEquipment(pLineEquipment);
    }

    /**
     * 修改生产线基础数据
     * 
     * @param pLineEquipment 生产线基础数据
     * @return 结果
     */
    @Override
    public int updatePLineEquipment(PLineEquipment pLineEquipment)
    {
        return pLineEquipmentMapper.updatePLineEquipment(pLineEquipment);
    }

    /**
     * 批量删除生产线基础数据
     * 
     * @param plineids 需要删除的生产线基础数据ID
     * @return 结果
     */
    @Override
    public int deletePLineEquipmentByIds(String[] plineids)
    {
        return pLineEquipmentMapper.deletePLineEquipmentByIds(plineids);
    }

    /**
     * 删除生产线基础数据信息
     * 
     * @param plineid 生产线基础数据ID
     * @return 结果
     */
    @Override
    public int deletePLineEquipmentById(String plineid)
    {
        return pLineEquipmentMapper.deletePLineEquipmentById(plineid);
    }
}
